package com.ak.server.platform.service.impl;

import com.ak.common.entity.system.*;
import com.ak.server.platform.mapper.TenantMapper;
import com.ak.server.platform.service.ITenantService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 租户 业务层处理
 *
 * @author Vean
 */
@Service
public class TenantServiceImpl extends ServiceImpl<TenantMapper, Tenant> implements ITenantService {

    @Autowired
    private TenantMapper tenantMapper;

    @Override
    public List<Tenant> selectTenantList(Tenant tenant) {
        return tenantMapper.selectTenantList(tenant);
    }

    /**
     * 根据主建编辑查询租户信息
     *
     * @param tenantCode
     * @return
     */
    @Override
    public Tenant selectTenantByTenantCode(String tenantCode) {
        return tenantMapper.selectTenantByTenantCode(tenantCode);
    }
}
